package com.groupa.project1.swing;

import com.groupa.project1.chat.ContentClass;
import com.groupa.project1.chat.GenericMessageClass;
import com.groupa.project1.chat.InstantMessageClass;
import com.groupa.project1.chat.SearchProfileMessage;
import com.groupa.project1.chat.SearchResultMessage;
import com.groupa.project1.chat.ToolsClass;
import com.groupa.project1.chat.UserContentMessage;
import com.groupa.project1.chat.interfaces.Content;
import com.groupa.project1.chat.interfaces.InstantMessage;
import com.groupa.project1.database.PhotoClass;
import com.sun.media.jai.widget.DisplayJAI;
import java.awt.Dimension;
import java.awt.Graphics2D;
import java.awt.Rectangle;
import java.awt.geom.AffineTransform;
import java.awt.image.renderable.ParameterBlock;
import java.io.IOException;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Properties;
import java.util.logging.Logger;
import javax.media.jai.JAI;
import javax.media.jai.PlanarImage;
import javax.swing.BoxLayout;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import org.jivesoftware.smack.Roster;
import org.jivesoftware.smack.RosterEntry;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * editorsMenu.java
 *
 * Created on 15-feb-2012, 20:35:20
 */
/**
 *
 * @author JoWi
 */
public class editorsMenu extends javax.swing.JFrame {
    
    SearchResultMessage SR;
    PhotoClass PhotoSelected2,PhotoSelected3,PhotoSelected4,PhotoSelected5,PhotoSelected6,PhotoSelected7;
    boolean Panel2Activated,Panel3Activated,Panel4Activated,Panel5Activated,Panel6Activated,Panel7Activated;
    InstantMessage instance;
    Logger log;
    download down;
    Properties Prop;
    private static editorsMenu M; 
    GenericMessageClass GMC;
    SearchProfileMessage SP;
    UserContentMessage UC;
    Roster RE;
    private static String emailLogin;
    private static String destination;
    int numero = 0;
    
    /** Creates new form editorsMenu */
    private editorsMenu() {
        initComponents();
        jLabel4.setVisible(false);
        jLabel5.setVisible(false);
        this.setResizable(false);
        instance = InstantMessageClass.GetInstance();
        log = InstantMessageClass.getLog();
        Prop = InstantMessageClass.getPropertiesStatic();
        emailLogin = login.getLogin();
        RE = instance.GetContacts();
        jLabel2.setText(emailLogin);
    }
    
    public static editorsMenu getEditorsMenu(){
        if(M == null){
            M = new editorsMenu();
        }
        
        return M;
    }
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jPanel2 = new javax.swing.JPanel();
        jCheckBox2 = new javax.swing.JCheckBox();
        jPanel3 = new javax.swing.JPanel();
        jCheckBox4 = new javax.swing.JCheckBox();
        jPanel4 = new javax.swing.JPanel();
        jCheckBox3 = new javax.swing.JCheckBox();
        jPanel5 = new javax.swing.JPanel();
        jCheckBox5 = new javax.swing.JCheckBox();
        jPanel7 = new javax.swing.JPanel();
        jCheckBox6 = new javax.swing.JCheckBox();
        jPanel6 = new javax.swing.JPanel();
        jCheckBox7 = new javax.swing.JCheckBox();
        jButton4 = new javax.swing.JButton();
        jButton3 = new javax.swing.JButton();
        jLabel2 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        chatEditor = new javax.swing.JComboBox();
        jButton6 = new javax.swing.JButton();
        jButton1 = new javax.swing.JButton();
        SearchButton1 = new javax.swing.JButton();
        jTextField2 = new javax.swing.JTextField();
        SearchBy3 = new javax.swing.JComboBox();
        SearchBy2 = new javax.swing.JComboBox();
        keywordButton = new javax.swing.JRadioButton();
        taxonomyButton = new javax.swing.JRadioButton();
        newsButton = new javax.swing.JRadioButton();
        jButton2 = new javax.swing.JButton();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("EDITOR MENU");

        jPanel1.setBackground(new java.awt.Color(200, 200, 200));

        jPanel2.setBackground(new java.awt.Color(225, 225, 225));

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 108, Short.MAX_VALUE)
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );

        jCheckBox2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCheckBox2ActionPerformed(evt);
            }
        });

        jPanel3.setBackground(new java.awt.Color(225, 225, 225));

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 107, Short.MAX_VALUE)
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );

        jCheckBox4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCheckBox4ActionPerformed(evt);
            }
        });

        jPanel4.setBackground(new java.awt.Color(225, 225, 225));

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 108, Short.MAX_VALUE)
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );

        jCheckBox3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCheckBox3ActionPerformed(evt);
            }
        });

        jPanel5.setBackground(new java.awt.Color(225, 225, 225));

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 108, Short.MAX_VALUE)
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );

        jCheckBox5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCheckBox5ActionPerformed(evt);
            }
        });

        jPanel7.setBackground(new java.awt.Color(225, 225, 225));

        javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
        jPanel7.setLayout(jPanel7Layout);
        jPanel7Layout.setHorizontalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );
        jPanel7Layout.setVerticalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );

        jCheckBox6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCheckBox6ActionPerformed(evt);
            }
        });

        jPanel6.setBackground(new java.awt.Color(225, 225, 225));

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 108, Short.MAX_VALUE)
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );

        jCheckBox7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCheckBox7ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGap(10, 10, 10)
                                .addComponent(jCheckBox5))
                            .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGap(20, 20, 20)
                                .addComponent(jCheckBox6))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGap(10, 10, 10)
                                .addComponent(jCheckBox7))
                            .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGap(10, 10, 10)
                                .addComponent(jCheckBox2))
                            .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGap(20, 20, 20)
                                .addComponent(jCheckBox4))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGap(20, 20, 20)
                                .addComponent(jCheckBox3))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(11, 11, 11)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCheckBox2)
                    .addComponent(jCheckBox4)
                    .addComponent(jCheckBox3))
                .addGap(36, 36, 36)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jCheckBox6))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jCheckBox5)
                            .addComponent(jCheckBox7))))
                .addGap(10, 10, 10))
        );

        jButton4.setText("My profile");
        jButton4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton4ActionPerformed(evt);
            }
        });

        jButton3.setText("My Photos");
        jButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton3ActionPerformed(evt);
            }
        });

        jLabel2.setText("User X");

        jLabel1.setText("Hello,");

        jLabel3.setText("Result Search");

        chatEditor.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "User 1", "User 2", "User 3", "User 4" }));

        jButton6.setText("Download");
        jButton6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton6ActionPerformed(evt);
            }
        });

        jButton1.setText("logout");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        SearchButton1.setText("Search");
        SearchButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                SearchButton1ActionPerformed(evt);
            }
        });

        jTextField2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField2ActionPerformed(evt);
            }
        });

        SearchBy3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Title","Adjacent paragraphs", "All pharagraphs" }));
        SearchBy3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                SearchBy3ActionPerformed(evt);
            }
        });

        SearchBy2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Animales","Vinos", "Plantas" }));
        SearchBy2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                SearchBy2ActionPerformed(evt);
            }
        });

        keywordButton.setText("keyword");
        keywordButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                keywordButtonActionPerformed(evt);
            }
        });

        taxonomyButton.setText("taxonomy");
        taxonomyButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                taxonomyButtonActionPerformed(evt);
            }
        });

        newsButton.setText("News");
        newsButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                newsButtonActionPerformed(evt);
            }
        });

        jButton2.setText("Slide Show");
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });

        jLabel4.setForeground(new java.awt.Color(255, 0, 0));
        jLabel4.setText("Select an option to Search");

        jLabel5.setForeground(new java.awt.Color(255, 0, 0));
        jLabel5.setText("Select a photo");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(layout.createSequentialGroup()
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jButton3)
                                        .addComponent(jButton4))
                                    .addGap(31, 31, 31))
                                .addGroup(layout.createSequentialGroup()
                                    .addComponent(jButton6, 0, 0, Short.MAX_VALUE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jButton2)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel3)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(chatEditor, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(taxonomyButton)
                                    .addComponent(newsButton))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(SearchBy3, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(SearchBy2, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(keywordButton)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 134, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGap(18, 18, 18)
                        .addComponent(SearchButton1)))
                .addContainerGap(26, Short.MAX_VALUE))
            .addGroup(layout.createSequentialGroup()
                .addGap(228, 228, 228)
                .addComponent(jLabel1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 100, Short.MAX_VALUE)
                .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(41, 41, 41))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 254, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(120, 120, 120))
        );

        layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {SearchBy2, SearchBy3});

        layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jButton2, jButton3, jButton4, jButton6});

        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(20, 20, 20)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel2)
                            .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGap(26, 26, 26))
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(keywordButton)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(27, 27, 27)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(taxonomyButton)
                            .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(SearchButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(SearchBy2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addGap(5, 5, 5)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(newsButton)
                    .addComponent(SearchBy3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(35, 35, 35)
                .addComponent(jLabel3)
                .addGap(6, 6, 6)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jButton3)
                        .addGap(18, 18, 18)
                        .addComponent(jButton4)
                        .addGap(18, 18, 18)
                        .addComponent(jButton6)
                        .addGap(18, 18, 18)
                        .addComponent(jButton2))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(38, 38, 38)
                        .addComponent(chatEditor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(18, 18, 18)
                .addComponent(jLabel4)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel5)
                .addGap(89, 89, 89))
        );

        layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {jButton4, jButton6});

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
// TODO add your handling code here:
    login log=new login();
    log.setVisible(true);
    this.setVisible(false);
}//GEN-LAST:event_jButton1ActionPerformed

private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
// TODO add your handling code here:
    myPhotos my = new myPhotos();
    my.setVisible(true);
}//GEN-LAST:event_jButton3ActionPerformed

private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed
// TODO add your handling code here:
    profile prof = new profile();
    prof.setVisible(true);
}//GEN-LAST:event_jButton4ActionPerformed

 public void setSearchResult(SearchResultMessage SR){
        log.info("Establecemos el resultado");
        this.SR = SR;
       
        ToolsClass Tools = new ToolsClass(log);

        log.info("Llega al if");
        if(SR.isPhoto()){
              log.info("M es una foto");
              down.setSR(SR,Prop,log);
        }else{
             log.info("M es una thumbnail");
      
        HashMap<String, Content> results =  SR.getContent();
        String name = "";
        ContentClass C;
        String path;
        PlanarImage image;
        DisplayJAI dj;
        JScrollPane newImagePane;
        PhotoClass P;
     


        
        Iterator itr = results.keySet().iterator();
                  
                while(itr.hasNext()) {
                    
                    name= (String) itr.next();     
                    C = (ContentClass) results.get(name);
                    
                    
                    numero++;
                    
                    
                    switch(numero) {
                        
                            case 1: 
                                
                                PhotoSelected2 = (PhotoClass)C.getPhoto(); 
                                path =Prop.getProperty("StoreThumbnail/path") + name;
                                log.info("Mostrando una foto 1..." + path); 
                                image = JAI.create("fileload", path);
                                dj = new DisplayJAI(image);
                                newImagePane = new JScrollPane(dj);
                                jPanel2.setPreferredSize(new Dimension(100,100));
                                jPanel2.setLayout(new BoxLayout(jPanel2,BoxLayout.PAGE_AXIS));
                                jPanel2.add(newImagePane);
                                Panel2Activated=true;
                                setVisible(true);


                            break;
                                
                            case 2: 

                                PhotoSelected4 = (PhotoClass)C.getPhoto(); 
                                path =Prop.getProperty("StoreThumbnail/path") + name;
                                log.info("Mostrando una fotom 2..." + path); 
                                image = JAI.create("fileload", path);
                                dj = new DisplayJAI(image);
                                newImagePane = new JScrollPane(dj);
                                jPanel4.setPreferredSize(new Dimension(100,100));
                                jPanel4.setLayout(new BoxLayout(jPanel4,BoxLayout.PAGE_AXIS));
                                jPanel4.add(newImagePane);
                                Panel4Activated=true;
                                setVisible(true);


                            break;
                                
                            case 3: 

                                PhotoSelected3 = (PhotoClass)C.getPhoto(); 
                                path =Prop.getProperty("StoreThumbnail/path") + name;
                                log.info("Mostrando una fotom 3..." + path); 
                                image = JAI.create("fileload", path);
                                dj = new DisplayJAI(image);
                                newImagePane = new JScrollPane(dj);
                                jPanel3.setPreferredSize(new Dimension(100,100));
                                jPanel3.setLayout(new BoxLayout(jPanel3,BoxLayout.PAGE_AXIS));
                                jPanel3.add(newImagePane);
                                Panel3Activated=true;
                                setVisible(true);


                            break;
                                
                            case 5: 

                                PhotoSelected5 = (PhotoClass)C.getPhoto(); 
                                path =Prop.getProperty("StoreThumbnail/path") + name;
                                log.info("Mostrando una fotom 4..." + path); 
                                image = JAI.create("fileload", path);
                                dj = new DisplayJAI(image);
                                newImagePane = new JScrollPane(dj);
                                jPanel5.setPreferredSize(new Dimension(100,100));
                                jPanel5.setLayout(new BoxLayout(jPanel5,BoxLayout.PAGE_AXIS));
                                jPanel5.add(newImagePane);
                                Panel5Activated=true;
                                setVisible(true);


                            break;
                            
                            case 6: 

                                PhotoSelected7 = (PhotoClass)C.getPhoto(); 
                                path =Prop.getProperty("StoreThumbnail/path") + name;
                                log.info("Mostrando una fotom 5..." + path); 
                                image = JAI.create("fileload", path);
                                dj = new DisplayJAI(image);
                                newImagePane = new JScrollPane(dj);
                                jPanel7.setPreferredSize(new Dimension(100,100));
                                jPanel7.setLayout(new BoxLayout(jPanel7,BoxLayout.PAGE_AXIS));
                                jPanel7.add(newImagePane);
                                Panel7Activated=true;
                                setVisible(true);


                            break;
                            
                            case 7: 

                                PhotoSelected6 = (PhotoClass)C.getPhoto(); 
                                path =Prop.getProperty("StoreThumbnail/path") + name;
                                log.info("Mostrando una fotom 5..." + path); 
                                image = JAI.create("fileload", path);
                                dj = new DisplayJAI(image);
                                newImagePane = new JScrollPane(dj);
                                jPanel6.setPreferredSize(new Dimension(100,100));
                                jPanel6.setLayout(new BoxLayout(jPanel6,BoxLayout.PAGE_AXIS));
                                jPanel6.add(newImagePane);
                                Panel6Activated=true;
                                setVisible(true);


                            break;
                    
                   }
                    
                 
             } 
          }
 
        
 }

 public static void openURL(String url) {
        String osName = System.getProperty("os.name");
        try {
            if (osName.startsWith("Windows")) {
                Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + url);
            } else if (osName.startsWith("Mac OS X")) {
                // Runtime.getRuntime().exec("open -a safari " + url);
                // Runtime.getRuntime().exec("open " + url + "/index.html");
                Runtime.getRuntime().exec("open " + url);
            } else {
                System.out.println("Please open a browser and go to "+ url);
            }
        } catch (IOException e) {
            System.out.println("Failed to start a browser to open the url " + url);
            e.printStackTrace();
        }
    }
 
private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton6ActionPerformed
// TODO add your handling code here:
    
       jLabel5.setVisible(false);
    if(jCheckBox2.isSelected()==true || jCheckBox2.isSelected()==true || jCheckBox4.isSelected()==true
            || jCheckBox5.isSelected()==true || jCheckBox6.isSelected()==true || jCheckBox7.isSelected()==true){
        
       down = new download();
       down.setVisible(true);
       
       destination = SR.getOrigin();
       log.info(destination);
        if(jCheckBox2.isSelected() && Panel2Activated == true){

                /*Creamos un nuevo objeto searchProfile y le entramos 2 parametros*/
                UC = new UserContentMessage(PhotoSelected2,PhotoSelected2.getPath());
                log.info("Path UC "+ PhotoSelected2.getPath());
                /* Guardamos el objeto en un GenericMessage junto a la dirección de origen y destino*/ 
                
        }
        
        if(jCheckBox3.isSelected() && Panel3Activated == true){

                /*Creamos un nuevo objeto searchProfile y le entramos 2 parametros*/
                UC = new UserContentMessage(PhotoSelected3,PhotoSelected3.getPath());
                 log.info("Path UC "+ PhotoSelected3.getPath());
                /* Guardamos el objeto en un GenericMessage junto a la dirección de origen y destino*/ 
                
        }
        if(jCheckBox4.isSelected() && Panel4Activated == true){

                /*Creamos un nuevo objeto searchProfile y le entramos 2 parametros*/
                UC = new UserContentMessage(PhotoSelected4,PhotoSelected4.getPath());
                 log.info("Path UC "+ PhotoSelected4.getPath());
                
        }
        if(jCheckBox5.isSelected() && Panel5Activated == true){

                /*Creamos un nuevo objeto searchProfile y le entramos 2 parametros*/
                UC = new UserContentMessage(PhotoSelected5,PhotoSelected5.getPath());
                 log.info("Path UC "+ PhotoSelected5.getPath());
                
        }
        if(jCheckBox6.isSelected() && Panel6Activated == true){

                /*Creamos un nuevo objeto searchProfile y le entramos 2 parametros*/
                UC = new UserContentMessage(PhotoSelected6,PhotoSelected6.getPath());
                 log.info("Path UC "+ PhotoSelected6.getPath());
                /* Guardamos el objeto en un GenericMessage junto a la dirección de origen y destino*/ 
        }
        
        GenericMessageClass GMC = new GenericMessageClass(emailLogin,destination,UC);

                /*Enviamos el mensaje*/
                try{ 

                    if(instance.send(GMC) == true){
                        log.info("Generic message con UC enviado");
                        /*Esperamos un tiempo a recibir el mensaje*/
                    }

                } catch (Exception ex) {
                        ex.printStackTrace();
                }
    }
    else{
        jLabel5.setVisible(true);
    }
}//GEN-LAST:event_jButton6ActionPerformed

private void SearchButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SearchButton1ActionPerformed
// TODO add your handling code here:
    jLabel4.setVisible(false);
    if(keywordButton.isSelected()==true || taxonomyButton.isSelected()==true || newsButton.isSelected()== true)
    {    
        
        if (keywordButton.isSelected()){
                String keyword = jTextField2.getText();

                /*Creamos un nuevo objeto searchProfile y le entramos 2 parametros*/
                SP = new SearchProfileMessage(keyword);
                log.info("busqueda por:" +keyword);
                SP.setPropertie("Q.photo1");

        }else if (taxonomyButton.isSelected()){
            String taxonomy = jTextField2.getText();
            
            
            if (SearchBy2.getSelectedItem().equals("Animales")){
                
                SP = new SearchProfileMessage("animales");
                SP.setPropertie("Q.photo2"); // hi ha que saber quina es la query de taxonomy 
                SP.setKeyword(taxonomy, 1);
            }
        
            else if (SearchBy2.getSelectedItem().equals("vinos")){

                SP = new SearchProfileMessage("Vinos");
                SP.setPropertie("Q.photo2"); // hi ha que saber quina es la query de taxonomy  
                SP.setKeyword(taxonomy, 1);
            }
        
            else if (SearchBy2.getSelectedItem().equals("plantas")){
               
                SP = new SearchProfileMessage("Plantas");
                SP.setPropertie("Q.photo2"); // hi ha que saber quina es la query de taxonomy 
                SP.setKeyword(taxonomy, 1);
            }
        }else if (newsButton.isSelected()){
            String keyword = jTextField2.getText();
            SP = new SearchProfileMessage(keyword);
        
            if (SearchBy3.getSelectedItem().equals("Title")){
                      SP.setPropertie("Q.news1");              
            }else if (SearchBy3.getSelectedItem().equals("Adjacent paragraphs")){
                  SP.setPropertie("Q.news5");
            }else if (SearchBy3.getSelectedItem().equals("All pharagraphs")){
                  SP.setPropertie("Q.news4");
        }

        }
    
        RosterEntry re = null;
  
                    try{
                               
                for (Iterator<RosterEntry> i = RE.getEntries().iterator(); i.hasNext();) {
                    re = (RosterEntry) i.next();
                    destination = re.getUser();
                    log.info("contacto:" + re.getUser());
       
                    /* Guardamos el objeto en un GenericMessage junto a la dirección de origen y destino*/ 
                    GMC = new GenericMessageClass(emailLogin,destination,SP);

                /*Enviamos el mensaje*/

                    if(instance.send(GMC) == true){
                    /*Esperamos un tiempo a recibir el mensaje*/
                    log.info("Generic message con SP enviado a: " + GMC.getDestination());
                    }


                }

            }catch(NullPointerException e){}
    }
    else
    {
        jLabel4.setVisible(true);
    }
         
}//GEN-LAST:event_SearchButton1ActionPerformed

private void jTextField2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField2ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jTextField2ActionPerformed

private void SearchBy3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SearchBy3ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_SearchBy3ActionPerformed

private void SearchBy2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SearchBy2ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_SearchBy2ActionPerformed

private void keywordButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_keywordButtonActionPerformed
// TODO add your handling code here:
    taxonomyButton.setSelected(false);
    newsButton.setSelected(false);
}//GEN-LAST:event_keywordButtonActionPerformed

private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
// TODO add your handling code here:
    openURL("localhost:8080/");
}//GEN-LAST:event_jButton2ActionPerformed

    private void taxonomyButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_taxonomyButtonActionPerformed
        // TODO add your handling code here:
        keywordButton.setSelected(false);
        newsButton.setSelected(false);
    }//GEN-LAST:event_taxonomyButtonActionPerformed

    private void newsButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_newsButtonActionPerformed
        // TODO add your handling code here:
        taxonomyButton.setSelected(false);
        keywordButton.setSelected(false);
    }//GEN-LAST:event_newsButtonActionPerformed

    private void jCheckBox2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox2ActionPerformed
        // TODO add your handling code here:
        jCheckBox3.setSelected(false);
        jCheckBox4.setSelected(false);
        jCheckBox5.setSelected(false);
        jCheckBox6.setSelected(false);
        jCheckBox7.setSelected(false);
    }//GEN-LAST:event_jCheckBox2ActionPerformed

    private void jCheckBox4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox4ActionPerformed
        // TODO add your handling code here:
        jCheckBox2.setSelected(false);
        jCheckBox3.setSelected(false);
        jCheckBox5.setSelected(false);
        jCheckBox6.setSelected(false);
        jCheckBox7.setSelected(false);
    }//GEN-LAST:event_jCheckBox4ActionPerformed

    private void jCheckBox3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox3ActionPerformed
        // TODO add your handling code here:
        jCheckBox2.setSelected(false);
        jCheckBox4.setSelected(false);
        jCheckBox5.setSelected(false);
        jCheckBox6.setSelected(false);
        jCheckBox7.setSelected(false);
    }//GEN-LAST:event_jCheckBox3ActionPerformed

    private void jCheckBox5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox5ActionPerformed
        // TODO add your handling code here:
        jCheckBox2.setSelected(false);
        jCheckBox4.setSelected(false);
        jCheckBox3.setSelected(false);
        jCheckBox6.setSelected(false);
        jCheckBox7.setSelected(false);
    }//GEN-LAST:event_jCheckBox5ActionPerformed

    private void jCheckBox6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox6ActionPerformed
        // TODO add your handling code here:
        jCheckBox2.setSelected(false);
        jCheckBox4.setSelected(false);
        jCheckBox5.setSelected(false);
        jCheckBox3.setSelected(false);
        jCheckBox7.setSelected(false);
    }//GEN-LAST:event_jCheckBox6ActionPerformed

    private void jCheckBox7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox7ActionPerformed
        // TODO add your handling code here:
        jCheckBox2.setSelected(false);
        jCheckBox4.setSelected(false);
        jCheckBox5.setSelected(false);
        jCheckBox6.setSelected(false);
        jCheckBox3.setSelected(false);
    }//GEN-LAST:event_jCheckBox7ActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(editorsMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(editorsMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(editorsMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(editorsMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new editorsMenu().setVisible(true);
                
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton SearchButton1;
    private javax.swing.JComboBox SearchBy2;
    private javax.swing.JComboBox SearchBy3;
    public javax.swing.JComboBox chatEditor;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jButton6;
    private javax.swing.JCheckBox jCheckBox2;
    private javax.swing.JCheckBox jCheckBox3;
    private javax.swing.JCheckBox jCheckBox4;
    private javax.swing.JCheckBox jCheckBox5;
    private javax.swing.JCheckBox jCheckBox6;
    private javax.swing.JCheckBox jCheckBox7;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JTextField jTextField2;
    private javax.swing.JRadioButton keywordButton;
    private javax.swing.JRadioButton newsButton;
    private javax.swing.JRadioButton taxonomyButton;
    // End of variables declaration//GEN-END:variables
}
